import { http } from "../../utils/http";


// 出库功能--获取最大出库单号
export const getMaxOutStockId = () => {
  return http.request("get", "/box/getMaxOutStockId");
};

// 出库功能--获取未完成出库申请单号

export const getUnfinishedOutStockId = () => {
  return http.request("get", "/box/getUnfinishedOutStockId");
};


//出库功能--新增出库单
export const getUnfinishedOutStockApplyDetails = (insertData) => {
  return http.request("post", "/box/getUnfinishedOutStockApplyDetails",{ data: insertData });
};

//出库功能--新增出库单
export const insertOutStock = (insertData) => {
  return http.request("post", "/box/insertOutStock",{ data: insertData });
};


// 木箱出库情况查询--获取所有出库信息
export const getOutStock = () => {
  return http.request("get", "/box/getOutStock");
};




//木箱出库情况查询--删除出库信息
export const DeleteOutStock = (OSid) => {
  return http.request("delete", "/box/DeleteOutStock",{ data: OSid});
};




//木箱出库情况查询--查询出库信息
export const searchOutStock = (OSid) => {
  return http.request("get", "/box/searchOutStock",{ data: OSid});
};

